home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Pascal / Applications / NIH Image 1.59 / Macros / Reference Card < prev    next >
Encoding:
Text File  |  1993-09-01  |  18.0 KB  |  240 lines  |  [TEXT/Imag]

  1. he stack is correctly displayed.
  2. Clear    EditMenu    Erases current ROI to background color
  3. Close    FileMenu    Closes the active image window
  4. Convolve('Kernel file name')    EnhanceMenu    Note that the name can be a directory path such as 'HD80:Image:Kernels:Smooth'
  5. Copy    EditMenu    Copies contents of current ROI to Clipboard
  6. CopyResults    EditMenu    Copies measurement results to the Clipboard
  7. cos(n)    MathFunc    Returns cosine of n (radians)
  8. cValue(PixelValue)    MacroFunc    Converts raw pixel values(0-255) to density calibrated values
  9. DeleteSlice    StacksMenu    Deletes the current slice
  10. Dilate    EnhanceMenu    
  11. Dispose    FileMenu    Similar to Close, but user is never prompted to save changes
  12. DisposeAll    FileMenu    
  13. Dither    EnhanceMenu    
  14. DIV    Operator
  15. Divide    PasteControl    Paste; Divide; or Paste; SetOption; Divide;
  16. DO    Key Word
  17. DoAnd    PasteControl    Paste; DoAnd; or Paste; SetOption; DoAnd;
  18. DoBlend    PasteControl    Paste; DoBlend; or Paste; SetOption; DoBlend;
  19. DoCopy    PasteControl    Paste; DoCopy; or Paste; SetOption; DoCopy;
  20. DoOr    PasteControl    Paste; DoOr; or Paste; SetOption; DoOr;
  21. DoReplace    PasteControl    Paste; DoReplace; or Paste; SetOption; DoReplace;
  22. DoXor    PasteControl    Paste; DoXor; or Paste; SetOption; DoXor;
  23. DrawBoundary    EditMenu    Outlines current ROI using foreground color. Use SetLineWidth to control width of outline.
  24. DrawNumber(n)    MacroProc    Displays n at the current location(set with MoveTo)
  25. DrawScale    EditMenu    
  26. DrawText('text')    MacroProc    Displays text at the current location
  27. Duplicate    Accepts Multiple Arugments zero Fill    
  28. Duplicate('Window Title')    FileMenu    
  29. ELSE    Key Word
  30. END    Key Word
  31. EnhanceContrast    EnhanceMenu    
  32. Erode    EnhanceMenu    
  33. Exit    MacroProc    Terminate execution of the macro
  34. exp(n)    MathFunc    Returns exponential of n
  35. Export    Accepts Multiple Arugments zero Fill    
  36. Export('name')    FileMenu    Use SetExport to specify what to export
  37. Fill    EditMenu    Fills current ROI with foreground color
  38. FlipHorizontal    EditMenu    
  39. FlipVertical    EditMenu    
  40. FOR    Key Word
  41. GetColumn(x,y,length)    MacroProc    Copies a column of pixels from active image to the line buffer
  42. GetInfo    FileMenu    
  43. GetLine(x1,y1,x2,y2,LineWidth)    MacroProc    Returns coordinates and width of current straight line selection. Sets x1=-1 if there is no line selection.
  44. GetMouse(x,y)    MacroProc    Returns location of cursor in local pixel coordinates
  45. GetNumber('Prompt',default)    MacroFunc    Displays a dialog box and returns with number entered
  46. GetPicSize(width,height)    MacroProc    Returns width and height of active image
  47. GetPixel(x,y)    MacroFunc    Returns the pixel value at (x,y)
  48. GetResults(n,mean,mode,min,max)    AnalyzeMenu    Use after Measure. Values returned are always  uncalibrated. Use cValue function to calibrate them.
  49. GetRoi(left,top,width,height)    MacroProc    Returns ROI location and size. Sets width=0 if no ROI.
  50. GetRow(x,y,length)    MacroProc    Copies a row of pixels from the active image to the line buffer
  51. GetSliceSpacing    MacroFunc    Returns slice spacing(in pixels) of current stack
  52. GetThresholds(lower,upper)    OptionsMenu    In density slicing mode, returns the lower and upper thresholds. In thresholding mode, lower is set to the threshold and upper is set to 255. Otherwise, both are set to zero
  53. GetTime(year, month,day, hour, minute, second, dayofweek)    MacroProc    
  54. GreenLUT    array[0..255]
  55. histogram    array[0..255]
  56. IF    Key Word
  57. IgnoreParticlesTouchingEdge(b)    AnalyzeMenu    
  58. Import    Accepts Multiple Arugments zero Fill    
  59. Import('File Name')    FileMenu    
  60. IncludeInteriorHoles(b)    AnalyzeMenu    
  61. InsetRoi(delta)    MacroProc    Shrinks or expands(if delta<0) ROI by delta
  62. INTEGER    Type
  63. Invert    EditMenu    Linearly inverts image or ROI
  64. InvertLUT    OptionsMenu    Inverts video look-up table
  65. InvertY(b)    OptionsMenu    Invert Y-coordinates if b is true
  66. KillRoi    MacroProc    Disables the current “marching ants” selection
  67. LabelParticles(b)    AnalyzeMenu    b=true or false
  68. LineBuffer    array[0..4095]
  69. LineTo(x,y)    MacroProc    Draws a line from current location to (x,y)
  70. ln(n)    MathFunc    Returns natural logarithm of n
  71. MACRO    Key Word
  72. MakeBinary    EnhanceMenu    
  73. MakeLineRoi(x1,y1,x2,y2)    MacroProc    Origin(0,0) is at upper left. Coordinates can be real numbers.
  74. MakeNewStack    Accepts Multiple Arugments zero Fill    
  75. MakeNewStack('name')    MacroProc    Creates a new 1-slice stack. Use SetNewSize to specify size.
  76. MakeNewWindow    Accepts Multiple Arugments zero Fill    
  77. MakeNewWindow('Name')    FileMenu    Use SetNewSize to specify the size of the new window
  78. MakeOvalRoi(left,top,width,height)    MacroProc    
  79. MakeRoi(left,top,width,height)    MacroProc    Origin(0,0) is at upper left
  80. MarkSelection    AnalyzeMenu    Same as the Label SelectionMenu command
  81. Measure    AnalyzeMenu    
  82. MOD    Operator
  83. MoveRoi(dx,dy)    MacroProc    Moves ROI right dx pixels and down dy pixels
  84. MoveTo(x,y)    MacroProc    Origin is always at upper left corner
  85. MoveWindow(x,y)    MacroProc    Moves current window to global screen coordinates (x,y)
  86. Multiply    PasteControl    Paste; Multiply; or Paste; SetOption; Multiply;
  87. MultiplyByConstant(n)    EnhanceMenu    0.0 <= n <= 255.0
  88. n:=ord(str)    StringFunc    Returns the ordinal number of the first character in a string(e.g. ord('A')=65). Returns -1 if the string is empty.
  89. n:=StringToNum(str)    StringFunc    Converts a string to a real number. Returns zero if the string contains no digits.
  90. nCoordinates    MacroFunc    Returns the number of coordinates for the current selection
  91. NewTextWindow('Name')    FileMenu    Creates a new text window with the title 'Name'
  92. NextWindow    WindowsMenu    
  93. NOT    Operator
  94. nPics    MacroFunc    Returns number of image windows
  95. nSlices    MacroFunc    Returns number of slices in current stack
  96. odd(n)    MathFunc    True if integer n odd
  97. Open    Accepts Multiple Arugments zero Fill    
  98. Open('File Name')    FileMenu    
  99. OpenSerial('Options')    StringFunc    Sets up the modem port for serial I/O. 'Options' contains '300 baud', '1200 baud', '2400 baud', '9600 baud' or  '19200 baud'; 'no parity', 'even parity' or 'odd parity';  'seven data' or 'eight data';  'One stop' or 'two stop'. The default is 9600 baud, no parity, eight data, one stop'.
  100. OR    Operator
  101. Outline    EnhanceMenu    
  102. OutlineParticles(b)    AnalyzeMenu    
  103. Paste    EditMenu    Pastes into current ROI if Clipboard object and ROI have the same dimensions, otherwise, pastes into center of image.
  104. PhotoMode(b)    SpecialMenu    Set b true to enable “Photo Mode” and false to disable it
  105. PicNumber    MacroFunc    Returns number(used by SelectPic) of active window
  106. PlotProfile    AnalyzeMenu    Replaces Column Average Plot
  107. PlotXYZ    MacroProc    Plots XYZ coordinate data stored in a text file
  108. Print    FileMenu    Prints the active image
  109. PROCEDURE    Key Word
  110. PropagateDensity    OptionsMenu    Propagates current density calibration to all other open images
  111. PropagateLUT    OptionsMenu    Propagates current LUT to all other open images
  112. PropagateSpatial    OptionsMenu    Propagates current spatial calibration to all other open images
  113. PutColumn(x,y,length)    MacroProc    Copies length pixels from line buffer to a column in image
  114. PutMessage    Accepts Multiple Arugments Blank Fill    
  115. PutMessage('message')    MacroProc    Displays 'message' in a dialog box. Accepts multiple arguments like the Write routine.
  116. PutPixel(x,y,value)    MacroProc    Displays value at location (x,y)
  117. PutRow(x,y,length)    MacroProc    Copies length pixels from line buffer to a row in the image
  118. PutSerial    Accepts Multiple Arugments Blank Fill    
  119. PutSerial(str)    StringFunc    Writes 'str' to the modem port. Like the Write routine, it accepts multiple arguments(e.g. PutSerial('v=',v:1:2)).
  120. random    MathFunc    Generates a random number between 0 and 1
  121. rAngle    array[1..<Max Measurements>]
  122. rArea    array[1..<Max Measurements>]
  123. rCount    MacroFunc    Returns current measurement counter value
  124. REAL    Type
  125. Redirect(b)    AnalyzeMenu    Enable/disable redirected sampling. b=true or false.
  126. RedLUT    array[0..255]
  127. ReduceNoise    EnhanceMenu    
  128. REPEAT    Key Word
  129. RequiresVersion(n)    MacroProc    Aborts macro if Image version number is less than specified
  130. ResetCounter    AnalyzeMenu    Sets the measurement counter to zero
  131. ResetGrayMap    MacroProc    Equivalent to clicking on reset icon in Map window
  132. Reslice    StacksMenu    
  133. RestoreRoi    AnalyzeMenu    Same as the Restore SelectionMenu command
  134. RestoreState    MacroProc    Restore settings saved by SaveState
  135. RevertToSaved    FileMenu    
  136. RGBToIndexed('string')    StacksMenu    Where string contains some combination of 'System LUT', 'Existing LUT, 'Custom LUT' and 'Dither'. Custom LUT and Dither are the defaults. 
  137. rLength    array[1..<Max Measurements>]
  138. rMajor    array[1..<Max Measurements>]
  139. rMax    array[1..<Max Measurements>]
  140. rMean    array[1..<Max Measurements>]
  141. rMin    array[1..<Max Measurements>]
  142. rMinor    array[1..<Max Measurements>]
  143. RotateLeft(b)    EditMenu    Create new window if b true
  144. RotateRight(b)    EditMenu    Create new window if b true
  145. Round(n)    MacroFunc    Converts a real value to integer with rounding
  146. rStdDev    array[1..<Max Measurements>]
  147. rUser1    array[1..<Max Measurements>]
  148. rUser2    array[1..<Max Measurements>]
  149. rX    array[1..<Max Measurements>]
  150. rY    array[1..<Max Measurements>]
  151. Save    FileMenu    Use SetPicName('Name') to specify file name
  152. SaveAll    FileMenu    
  153. SaveAs    Accepts Multiple Arugments zero Fill    
  154. SaveAs('name')    FileMenu    Saves currently active image using the specified name
  155. SaveState    MacroProc    Saves foreground and background color, new window width and height, status of Invert Y flag, and various ScaleAndRotate and SetScaling parameters
  156. ScaleAndRotate(xscale,yscale,angle)    EditMenu    
  157. ScaleMath(b)    OptionsMenu    b=true or false. Sets or resets Scale Image Arithmetic flag.
  158. ScaleSelection(xscale,yscale)    EditMenu    0.05 <= xscale,yscale <= 25.0
  159. Scion    array[1..4] DACA DACB ControlRegRO DigitalOutput
  160. SelectAll    EditMenu    
  161. SelectPic(n)    MacroProc    Activates Nth image window
  162. SelectSlice(n)    MacroProc    Display Nth slice in a stack
  163. SelectWindow(‘name’)    MacroProc    Activate the window with the title ‘name’
  164. SetBackgroundColor(c)    MacroProc    0 <= c <= 255
  165. SetBinaryCount(n)    EnhanceMenu    1 <=n <= 8
  166. SetChannel(channel)    SpecialMenu    Sets the video input channel, where channel=1, 2, 3, or 4
  167. SetCounter(n)    MacroProc    Sets the measurement counter to n
  168. SetCursor('str')    MacroProc    Changes cursor shape. Set 'str' to 'watch', 'cross' or 'arrow'.
  169. SetCustom(width,height,offset,slices)    FileMenu    Specifies the width, height, offset, and number of slices for imported files. The slices argument is optional. 
  170. SetDensitySlice(lower,upper)    OptionsMenu    1 <= lower,upper <= 254. SetDensitySlice(0,0) disables density slicing, SetDensitySlice(255,255) enables it.
  171. SetExport('mode')    FileMenu    Where mode is one of: 'Raw', 'MCID', 'Text', 'LUT', 'Measurements', 'Plot Values', Histogram Values' or  'XY Coordinates'
  172. SetFont('Font name')    OptionsMenu    Font Name=Geneva, Monoco, Helvetica, Times, etc.
  173. SetFontSize(size)    OptionsMenu    Set font size in points, where 6<=size<=720
  174. SetForegroundColor(c)    MacroProc    0 <= c <= 255, were 0=white and 255=black
  175. SetImport('string')    FileMenu    Where string contains some combination of: 'TIFF', 'MCID', 'Palette', 'Text', 'Custom', '8-bits', '16-bits Unsigned', '16-bits  Signed', 'Swap Bytes', 'Auto-Scale', Fixed Scale', 'Calibrate' and 'Open All'
  176. SetImportMinMax(min,max)    FileMenu    Disables auto-scaling and fixes the range of Imported files
  177. SetLineWidth(width)    MacroProc    
  178. SetNewSize(width,height)    OptionsMenu    Specifies width and height of new windows
  179. SetOption    MacroProc    Equivalent to holding down Option key
  180. SetOptions('string')    AnalyzeMenu    Where ‘string’ contains some combination of 'Area', 'Mean', 'Std. Dev.', 'X-Y Center', 'Mode', 'Perimeter'(or 'Length'), 'Major', 'Minor', 'Angle',  'Int. Den.', 'Min/Max', 'User1',  or 'User2'. Any variable not listed is disabled.
  181. SetPalette(string)    OptionsMenu    Where string is one of: 'Grayscale', 'PseudoColor', 'System Palette', 'Rainbow' or 'Spectrum'
  182. SetParticleSize(min,max)    AnalyzeMenu    
  183. SetPicName    Accepts Multiple Arugments zero Fill    
  184. SetPicName('Name')    MacroProc    Renames the currently active image window
  185. SetPlotLabels(b)    OptionsMenu    b=true or false
  186. SetPlotScale(min,max)    OptionsMenu    Set min and max to zero for auto-scaling
  187. SetPlotSize(width,height)    OptionsMenu    Set width and height to zero for auto-sizing of plots
  188. SetPrecision(digits[,fwidth])    AnalyzeMenu    Were digits is the number of digits to the right of the decimal point and fwidth(optional) is the field width
  189. SetScale(scale,'units')    AnalyzeMenu    Scale is the number of pixels per unit of measurement. 'Units' is one of the following: 'nm', 'µm'(or 'um'), 'mm', 'cm', 'me', 'km', in', 'ft', 'mi', or 'pixels'. Use SetScale(0,'pixels') to disable spatial calibration and SetScale(0,'') to activate the Set Scale dialog box.
  190. SetScaling('string')    EditMenu    Where string contains  some combination of: 'Nearest', 'Bilinear', 'New Window', 'Same Window' or  'Interactive'
  191. SetSliceSpacing(n)    MacroProc    Set slice spacing(in pixels) for use by Reslice and Project commands
  192. SetText(string)    OptionsMenu    Where string contains any combination of: 'Bold', 'Italic', 'Underline', 'Outline', 'Shadow', 'Left Justified', 'Right Justified', 'Centered', 'No Background', or 'With Background'
  193. SetThreshold(level)    OptionsMenu    0 <= level <= 255. SetThreshold(-1) disables thresolding
  194. SetUser1Label('Label')    MacroProc    Replaces label used for User 1 column in Results window
  195. SetUser2Label('Label')    MacroProc    Replaces label used for User 2 column in Results window
  196. SetVideo('string')    SpecialMenu    Where 'string' is some combination of 'Invert, 'Highlight', 'Oscillating', 'Trigger', 'Blind' or 'Separate'. Any option not specified is disabled.
  197. Shadow    EnhanceMenu    
  198. Sharpen    EnhanceMenu    Precede with SetOption for greater sharpening
  199. ShowHistogram    AnalyzeMenu    
  200. ShowMessage    Accepts Multiple Arugments Blank Fill    
  201. ShowMessage('message')    MacroProc    Displays 'message' in the Values window. Accepts multiple arguments like the Write routine. Use a back-slash('\') to start a new line.
  202. ShowPasteControl    WindowsMenu    Activates the Paste Control window
  203. ShowResults    AnalyzeMenu    
  204. sin(n)    MathFunc    Returns sine of n(radians)
  205. Skeletonize    EnhanceMenu    
  206. SliceNumber    MacroFunc    Returns number of current slice in a stack
  207. Smooth    EnhanceMenu    Precede with SetOption for unweighted smoothing
  208. sqr(n)    MathFunc    Returns square of n
  209. sqrt(n)    MathFunc    Returns sqrt of n
  210. StartCapturing    SpecialMenu    Start live video
  211. StopCapturing    SpecialMenu    Stop live video
  212. str:=chr(n)    StringFunc    Converts a positive integer in the range 0..255 to a one character string(e.g. chr(65) = 'A').
  213. str:=concat(str1, str2,...)    StringFunc    Concatenates a series of strings
  214. str:=GetSerial    StringFunc    Returns the next available character in the serial(modem) input buffer as a one character string or returns an empty string if the buffer is empty.
  215. str:=GetString('Prompt','def.')    StringFunc    Displays a dialog box and returns with the string entered. The first argument is the prompting message and the second argument(optional) is the default input string.
  216. STRING    Type
  217. Subtract    PasteControl    Paste; Subtract; or Paste; SetOption; Subtract;
  218. SubtractBackground('str',radius)    EnhanceMenu    Where 'str' is one of: '1D Horizontal', '1D Vertical', '2D Rolling Ball' or '2D Remove Streaks'.  Add 'faster' to 'str'(e.g. '2D Rolling Ball(faster)') for faster operation.
  219. SurfacePlot    AnalyzeMenu    Creates a surface plot of the current image. Use SetNewSize to specify the size of the plot.
  220. THEN    Key Word
  221. TickCount    MacroFunc    Returns the number of ticks(sixtieths of a second) since system last started
  222. TileWindows    WindowsMenu    
  223. TO    Key Word
  224. TraceEdges    EnhanceMenu    Precede with SetOption to prevent auto-thresholding
  225. Trunc(n)    MacroFunc    Converts a real value to integer with truncation
  226. Undo    EditMenu    
  227. UndoBufferSize    MacroFunc    Returns the current size of the Undo and Clipboard buffers
  228. UNTIL    Key Word
  229. UpdateResults    MacroProc    Redisplays last measurement in Values and Results windows
  230. UserCode(n,p1,p2,p3)    MacroProc    Calls a user written Pascal routine, where n specifies which routine is called and p1, p2 and p3 are real input parameters
  231. VAR    Key Word
  232. Wait(seconds)    MacroProc    Fractions of a second are allowed, e.g., wait(1.5)
  233. WaitForTrigger    MacroProc    Waits for external trigger if using QuickCapture or Scion LG-3 frame grabber, otherwise waits for mouse button
  234. WandAutoMeasure(b)    AnalyzeMenu    
  235. WHILE    Key Word
  236. Write(e1,e2,...)    MacroProc    Draws text, variables, or constants at the current location. Like Writeln procedure in Pascal, expressions may have optional field width specifications in the form e:f1:f2(e.g., write('M=',mean:8:3), where f1 is the field width, and f2 specifies the number of digits to the right of the decimal point.
  237. Writeln(e1,e2,...)    MacroProc    Similar to Write, but does the equivalent of a line feed and carriage return after displaying the specified values.
  238. xCoordinates    array[1..nCoordinates]
  239. yCoordinates    array[1..nCoordinates]
  240.